@extends('home.parent')
@section('title','查看消息')
@section('head_js')
@endsection
@section('head_css')
<link rel="stylesheet" href="{{ asset('/css/dataTables.bootstrap.css') }}">
@endsection
@section('content')
  <div class="content-wrapper">
    <section class="content-header">
      <h1>
        查看消息
        <small></small>
      </h1>
      <ol class="breadcrumb">
        <li><a href="{{URL('admin')}}"><i class="fa fa-dashboard"></i> 首页</a></li>
        <li><a href="{{URL('admin/message/list')}}">消息列表</a></li>
        <li class="active">查看消息</li>
      </ol>
    </section>
    <section class="invoice">
      <div class="row">
        <div class="col-xs-6">
          <a href="{{ URL('/admin/message/list') }}" class="btn btn-default"><i class="fa fa-reply"></i> 返回</a>
          <p class="lead"></p>
          <div class="table-responsive">
            <table class="table">
              <tbody>
                <tr>
                  <th style="width:30%">编号</th>
                  <td>{{ $data['id'] }}</td>
                </tr>
                <tr>
                  <th>消息标题</th>
                  <td>{{ $data['title'] }}</td>
                </tr>
                <tr>
                  <th>消息内容</th>
                  <td>{{ $data['content'] }}</td>
                </tr>
                <tr>
                  <th>发送人</th>
                  <td>{{ $data['send_name'] }}</td>
                </tr>
                <tr>
                  <th>创建者</th>
                  <td>{{ $data['admin_name'] }}</td>
                </tr>
                <tr>
                  <th>接收者</th>
                  <td>{{ $data['receive_name'] }}</td>
                </tr>
                <tr>
                  <th>创建时间</th>
                  <td>{{ $data['create_time'] }}</td>
                </tr>
                <tr>
                  <th>修改时间</th>
                  <td>{{ $data['update_time'] }}</td>
                </tr>
                <tr>
                  <th>状态</th>
                  <td>
                    @if($data['status'] == 1)
                      开启
                    @elseif($data['status'] == 0)
                      关闭
                    @else
                      已删除
                    @endif
                  </td>
                </tr>
              </tbody>
            </table>
          </div>
        </div>
      </div>
    </section>
  </div>
@endsection
@section('foot_js')
@endsection